﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UAXInversionesWeb
{
    public partial class PaginaPrincipalSupervisor : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            PrincipalSupervisor myMaster = (PrincipalSupervisor)this.Master;
            myMaster.mainTitle = "Supervisor";

            if (Request["case"] == "solBaja")
            {
                Response.Write("<script>alert('No hay solicitudes de baja.')</script>");
            }

            if (HttpContext.Current.Session["identificador"] != null)
            {
                int[] values = Proxy.getStatistics();

                numER.Text = values[0].ToString();
                numCR.Text = values[1].ToString();
                numTOR.Text = values[2].ToString();
                numTOP.Text = values[3].ToString();
                numSP.Text = values[4].ToString();
                valAT.Text = ((double)(values[5]/100)).ToString("N") + " €";
                valSC.Text = ((double)(values[6]/100)).ToString("N") + " €";

            }

        }

        protected void Button2_Click(object sender, EventArgs e)
        {

        }
    }
}
